package core;


public class User {
	
	// Members
	private String name;
	private int score;	 

	private String password;
	private Group currGroup;
	private int ID = -1;
	
	//onPlay parameters
	private City currQuestion; //the question currently asked
	private int currScore; 	   //the current score on current game
	private int questionsAsked;

	
	// Constructors
	public User(String name, String password, int score) {
		this.name = name;
		this.password = password;
		this.score = score;
		currGroup = null;
		this.currQuestion = null;
	}
	
	public User(String name, String password) {
		this(name, password, 0);
	}	
	
	public User(int ID, String name, String password, int score) {
		this(name, password, score);
		this.ID = ID;
	}
	
	public User(int ID, String name, String password) {
		this(name, password);
		this.ID = ID;
	}
	
	
	// Getters + Setters
	public String getName() {
		return this.name;
	}
	
	public Integer getScore() {
		return this.score;
	}
	
	public String getPassword() {
		return this.password;
	}
	
	public Group getCurrGroup() {
		return currGroup;
	}
	
	public void setCurrGroup(Group group) {
		currGroup = group;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public City getCurrQuestion() {
		return currQuestion;
	}

	public void setCurrQuestion(City currQuestion) {
		this.questionsAsked++;
		this.currQuestion = currQuestion;
	}

	public int getCurrScore() {
		return currScore;
	}

	public void setCurrScore(int currScore) {
		this.currScore = currScore;
	}
	
	public void addToCurrScore(int addScore) {
		this.currScore += addScore;
	}
	
	public int getQuestionsAsked() {
		return questionsAsked;
	}

	public void setQuestionsAsked(int questionsAsked) {
		this.questionsAsked = questionsAsked;
	}

	public void setScore(int score) {
		this.score = score;
	}
	
}
